package com.ruoyi.workorder.service;

import java.util.List;
import com.ruoyi.workorder.domain.WorkordersCatalog;

/**
 * 工单类别Service接口
 * 
 * @author renyuxin
 * @date 2024-05-28
 */
public interface IWorkordersCatalogService 
{
    /**
     * 查询工单类别
     * 
     * @param woCatalogId 工单类别主键
     * @return 工单类别
     */
    public WorkordersCatalog selectWorkordersCatalogByWoCatalogId(Long woCatalogId);

    /**
     * 查询工单类别列表
     * 
     * @param workordersCatalog 工单类别
     * @return 工单类别集合
     */
    public List<WorkordersCatalog> selectWorkordersCatalogList(WorkordersCatalog workordersCatalog);

    /**
     * 新增工单类别
     * 
     * @param workordersCatalog 工单类别
     * @return 结果
     */
    public int insertWorkordersCatalog(WorkordersCatalog workordersCatalog);

    /**
     * 修改工单类别
     * 
     * @param workordersCatalog 工单类别
     * @return 结果
     */
    public int updateWorkordersCatalog(WorkordersCatalog workordersCatalog);

    /**
     * 批量删除工单类别
     * 
     * @param woCatalogIds 需要删除的工单类别主键集合
     * @return 结果
     */
    public int deleteWorkordersCatalogByWoCatalogIds(Long[] woCatalogIds);

    /**
     * 删除工单类别信息
     * 
     * @param woCatalogId 工单类别主键
     * @return 结果
     */
    public int deleteWorkordersCatalogByWoCatalogId(Long woCatalogId);

    boolean checkNameUnique(WorkordersCatalog workordersCatalog);
}
